from wish.pool.role_pool import RolePool


def once_need_times():
    times = 0
    role_pool = RolePool()
    while True:
        times += 1
        role = role_pool.next()
        if role == RolePool.ROLE_5_UP or role == RolePool.ROLE_5_NORMAL:
            return times
